package com.corgi.mybatis.modules.service;

import com.corgi.mybatis.modules.domain.Attachment;
import com.corgi.mybatis.modules.mapper.AttachmentMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @title: AttachmentService
 * @description:
 * @author: dengmiao
 * @create: 2019-10-26 12:28
 **/
@Service
public class AttachmentService {

    @Autowired
    private AttachmentMapper attachmentMapper;

    public void save(Attachment attachment) {
        attachmentMapper.save(attachment);
    }

    public List<Attachment> selectList() {
        return attachmentMapper.selectList();
    }

    public Attachment selectById(Long id) {
        return attachmentMapper.selectById(id);
    }
}
